package cn.tx.coolshark.mapper;

import cn.tx.coolshark.pojo.entity.Category;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CategoryMapper {
    /*查询所有分类信息*/
    List<Category> select();
    /*根据id删除分类信息*/
    int deleteById(int id);
    /*添加分类*/
    int insert(String name);
    /*修改分类*/
    int update(Category category);
}
